package com.neu.flashmall.ms.mapper;

import com.neu.flashmall.ms.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 50286
* @description 针对表【sys_menu】的数据库操作Mapper
* @createDate 2022-06-30 14:46:26
* @Entity com.neu.flashmallms.entity.SysMenu
*/
@Mapper
public interface SysMenuMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysMenu record);

    int insertSelective(SysMenu record);

    SysMenu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);

    List<Long> selectAllByMenuId(List<Long> idList);

    List<SysMenu> selectAll();

    List<SysMenu> selectAllByLevel(Integer level);

    List<SysMenu> selectByRoleId(Long roleId);

    SysMenu selectByName(String name);

    int deleteById(Long id);

    int deleteByParentId(Long id);

    List<SysMenu> selectDuplicate(SysMenu sysMenu);

    List<Long> selectSonId(Long id);

    int deleteByParentIdList(List<Long> idList);

    List<Long> selectSonByIdList(List<Long> id);
}
